<style type="text/css">
  .btn_rd{ color: #FFF; background: #CDA60E; text-align: center; text-decoration: none; padding: 4px 6px 4px 6px; margin-right: 4px;}
</style>
<!-- <div class="list-search">
<form action="{:U(MODULE_NAME.'/Message/send')}" method="get">
<input type="text" name="keyword" class="search-ipt" placeholder="请输入关键字" value="{$keyword}">
<button type="submit" class="search-btn">&nbsp;</button>
</form>
</div> -->

<table class="search">
	<tbody>
		<tr>
			<td style="width:80px;">信箱：</td>
			<td>
        <a href="{:U(MODULE_NAME.'/Message/receive')}" >收件箱</a>
				<a href="{:U(MODULE_NAME.'/Message/send')}" class="current">已发送</a>
			</td>
		</tr>
    <tr>
      <td>关键搜索：</td>
      <td>
        <form action="{:U(MODULE_NAME.'/Message/send')}" method="get">
          <input type="text" name="keyword" class="input-m" placeholder="请输入关键字" value="{$keyword}">
          <button type="submit" class="button-green">查询</button>
        </form>
      </td>
    </tr>
	</tbody>
</table>

<div class="list-menu">
  <a href="javascript:;" class="button-green" onclick="sent()">发送信息</a>
</div>
<table class="list">
		<thead>
			<tr>
        <th width="20px"><img src="/Public/image/mail1.jpg"></th>
        <th width="100px">收件人</th>
        <th>主题</th>
        <th width="150px">时间</th> 
      </tr>
		</thead>
  <tbody id="name">
		<foreach name="list" item="message">
			<tr>
         <td><img src="/Public/image/mail1.jpg"></td>
         <td>{$message.receiveName}</td>
         <td><a href="{:U(MODULE_NAME.'/Message/detail',array('rid'=>$message['rid'],'id'=>$message['id']))}"><strong>{$message.title}</strong><font color="#A0A0A0">-{$message.content}</font></a></td>
         <td>{$message.sendTime}</td>
      </tr>
    </foreach>
  </tbody>
</table>
<div class="page" style="clear: both;">{$page}</div>
<script type="text/javascript">
function sent()
{
    window.location.href = '{:U(MODULE_NAME.'/Message/sent')}';
};
</script>